home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Click 1 (Special Issue) / fantasy.iso / Demo The Druid King / DemoMap.pak / SEQUENCES_S01_MILYS_MESSENGER.VS < prev    next >
Text File  |  2001-04-11  |  1KB  |  43 lines

  1. //void
  2. //a messenger from wkorthe comes to Keltill to announce the death of Milys
  3. Unit Gaul;
  4. NamedObj Keltill, Villager;
  5. Conversation conv;
  6.  
  7.     Keltill = GetNamedObj("Keltill");
  8.     if (Keltill.IsDead()) {
  9.         pr("Keltill is dead?!? This cannot possibly happen!");
  10.         return;
  11.     }
  12.  
  13.  
  14.     Gaul = PlaceEx("GaulMessenger1", 800, 5000, 4);
  15.     //Gaul.AddCommand(true,"follow",Keltill.obj);
  16.     Gaul.AddCommand(true,"approach",Keltill.obj);
  17.     Gaul.KillCommand();
  18.     Villager = CreateNamedObj("Villager", Gaul);
  19.  
  20.     /*
  21.     while (1) {
  22.         if (Dist(Gaul.pos, Keltill.obj.pos) < 350) break;
  23.         Sleep(500);
  24.     }    */
  25.     while (Gaul.script == "approach") Sleep(500);
  26.  
  27.     conv.Init("DM C3", 2, 0);
  28.     //conv.SetActor("Keltill", Keltill.obj.AsUnit,"");
  29.     //conv.SetActor("Villager", Gaul, "assets/classes/images/demoactors/messenger.bmp");
  30.     conv.Run();
  31.  
  32.     Gaul.SetPlayer(1);
  33.     Gaul.AddCommand(true,"attach", Keltill.obj);
  34.     Gaul.KillCommand();
  35.  
  36.     EnvWriteString("/NewNote", 1);
  37.     Run("currentmap/mission_notes.vs");
  38.     Sleep(20000);
  39.  
  40.     EnvWriteString("/NewNote", 2);
  41.     Run("currentmap/mission_notes.vs");
  42.  
  43.